<script>
  function isFoo(value) {
    return value === 'foo' ? true : false;
  }
</script>
